###
# 
# Copyright (c) ShenYongchen (shenyczz@163.com)
# All rights reserved.
# 
###############################################################################
# Root
# 
# 版本
# cmake_minimum_required(VERSION 3.10...3.20 FATAL_ERROR)

# 策略
foreach(policy CMP0068 CMP0071 CMP0083)
  if(POLICY ${policy})
    cmake_policy(SET ${policy} NEW)
  endif()
endforeach()

# 项目
project(RadarNetwork VERSION 1.0)

# # 指定C++标准
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# 包含目录
include_directories("user_cpp_library/libtorch/include")
include_directories("user_cpp_library/libtorch/include/torch/csrc/api/include")

# 链接库目录
link_directories(${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
# target_link_libraries(proj010503 "${TORCH_LIBRARIES}")

# 如果使用其他库，可以在这里添加
# find_package(Boost REQUIRED)
# target_link_libraries(${PROJECT_NAME} PRIVATE Boost::boost)
#------------------------------------------------------------------------------

# 添加可执行文件
# add_executable(${PROJECT_NAME} 
#     src/main.cpp
# )

#------------------------------------------------------------------------------





# 测试
# include(CTest)
# enable_testing()

# 打包
# set(CPACK_PROJECT_NAME ${PROJECT_NAME})
# set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
# include(CPack)
#------------------------------------------------------------------------------

# set(CMAKE_PREFIX_PATH user_cpp_library/libtorch)
# find_package(Torch REQUIRED)
#------------------------------------------------------------------------------
# 设置 cmake 目录
# set(_my_cmake_dir_ "${CMAKE_CURRENT_LIST_DIR}/cmake")
# list(APPEND CMAKE_MODULE_PATH "${_my_cmake_dir_}")

# SFX 宏消息开关
# set(SFX_MACRO_MESSAGE_SWITCH OFF)

# 按照以下顺序引入 cmake 文件
# include(sfxASystem)
# include(sfxVersion)
# include(sfxOptions)
# include(sfxDirectory)
# include(sfxMacros)
# include(sfxCompilerChecks)
# include(sfxCompilerPlatformFlags)
# include(sfxFunctions)

#------------------------------------------------------------------------------
# 选项
# option(BUILD_SHARED_LIBS "Build shared library." ON)


#------------------------------------------------------------------------------
# 

#------------------------------------------------------------------------------
# add_subdirectory("Source")
# add_subdirectory("Examples")
# add_subdirectory("UnitTesting")

# if(SFX_BUILD_DOCUMENT)
  # add_subdirectory("Document")
# endif()

#------------------------------------------------------------------------------
# END
# 


